package main;

import java.awt.Point;
import org.netbeans.api.visual.widget.Widget;
import scene.AmbienteModelagemDER;

/**
 * @author Slompo
 */
public class TestLabelMoveAndHover {

    public static void main(String[] args) {
        AmbienteModelagemDER scene = new AmbienteModelagemDER ();

        String helloNodeID = "Hello";
        String worldNodeID = "World";
        String edge = "edge";

        Widget hello = scene.addNode (helloNodeID);
        Widget world = scene.addNode (worldNodeID);

        scene.addEdge (edge);

        scene.setEdgeSource(edge, helloNodeID);
        scene.setEdgeTarget(edge, worldNodeID);

        hello.setPreferredLocation (new Point (100, 100));
        world.setPreferredLocation (new Point (400, 200));

        SceneSupport.show(scene.createView());
    }
    
}
